//
//  MoreModel.m
//  NBTripe
//
//  Created by 陈曦 on 16/1/9.
//  Copyright © 2016年 Vicki. All rights reserved.
//

#import "MoreModel.h"

@implementation MoreModel

- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"data"]) {
        NSMutableArray *mutableArray = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *dic in value) {
            VCsearchElementModel *dataModel = [[VCsearchElementModel alloc] initWithDataSource:dic];
            [mutableArray addObject:dataModel];
        }
        self.datas = [NSArray arrayWithArray:mutableArray];
    }
    
}

@end
